package xinxin.com.StatePattern.State.StateDetail;

import xinxin.com.StatePattern.State.State;
import xinxin.com.StatePattern.Work.Work;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/3/26 10:59
 */
public class RestState extends State {
    @Override
    public void WriteProgram(Work w) {
        System.out.println("当前时间：" + w.getHour() + "点下班回家了");
    }
}
